﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

using LZQXT.Test.Forms;

using Pub;
using Script;
using LZQXT.Test.Forms.DB;
using LZQXT.Test.Forms.Reg;
using LZQXT.Test.Forms.Cmd;

namespace LZQXT.Test
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        /// 

        public static FMain fmain;
        public static FDBInit fdbinit;
        public static FDBInit_Add fdbinit_add;
        public static FClsView fclsview;
        public static FStaID fsta_id;
        public static FDBTree fdb_tree;
        public static FDefVal fdefval;
        public static FTemTest ftemtest;
        public static FOptRain foptrain;
        public static FScript fscript;
        public static FDBMgr fquery;
        public static FReg freg;
        public static FDBRow fdbrow;
        public static FCmd fcmd;


        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ADOTest ado1 = new ADOTest();
            //CPub.webPath = ado1.sel1("select * from G_Pub_Mcb where use_note='WebPath'").Tables[0].Rows[0]["Val_Str"].ToString();
            CPub.exePath = Application.StartupPath;
            CPub.B_Test = Boolean.Parse(CConfig.getPermite("Test"));

            fmain = new FMain();
            fdbinit = new FDBInit();
            fdbinit_add = new FDBInit_Add();
            fdb_tree = new FDBTree();
            fsta_id = new FStaID();
            fquery = new FDBMgr();
            fclsview = new FClsView();
            fdefval = new FDefVal();
            ftemtest = new FTemTest();
            foptrain = new FOptRain();
            fscript = new FScript();
            freg = new FReg();
            fdbrow = new FDBRow();
            fcmd = new FCmd();


            fmain.flst.Add(fdb_tree);
            //fmain.flst.Add(fcolor);
            fmain.flst.Add(fquery);
            fmain.flst.Add(fclsview);
            fmain.flst.Add(fscript);
            fmain.flst.Add(freg);
            fmain.flst.Add(fcmd);

            Application.Run(fmain);
        }

    }
}